package org.example.multi_sys_consist.service;

import com.alibaba.fastjson.JSONObject;
import org.example.multi_sys_consist.constant.TransactionJobType;
import org.example.multi_sys_consist.pojo.entity.TransactionJob;

/**
 * 大型事务拆分后的小事务
 */
public interface TransactionJobService {

    TransactionJob create(TransactionJobType type, JSONObject data);

    void findAndExecute();
}
